<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=">
    <title>后台管理系统</title>
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/css.css">
    <script src="__PUBLIC__/Admin/js/jquery-1.9.1.js"></script>
    <script src="__PUBLIC__/Common/Layer/layer.js"></script>
    <script>
        //查看详情
        function look_detail(id){
            parent.layer.open({
                type: 2,
                title: '订单详情',
                shadeClose: true,
                shade: 0.5,
                maxmin: true,
                area: ['80%', '80%'],
                content: "{:U('Goods/order_lst_detail')}?id="+id //iframe的url
            });
        }
        function refresh(){
            window.location.href="{:U('Goods/orders_list')}"
        }

    </script>
</head>
<body>
<style>
    .tr_content {
        line-height: 32px;
        height:32px;
        font-size: 14px;
    }
</style>
<!--<div class="nav">
    <div class="nav_title">
        <h4><img class="nav_img" src="__PUBLIC__/Admin/img/tab.gif" /><span class="nav_a">用户管理 - 商城订单列表</span></h4>
    </div>
</div>-->


<div class="list">
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="list_table">
        <style>
            td{
                border-bottom: 1px solid #CCCCCC;
            }
            td p{
                float: left;
                margin: 10px;
            }
            .good_detail{

            }


        </style>
        <table style="width: 100%; border: 1px solid #CCCCCC" cellpadding="0" cellspacing="0">
            <tr>
                <td style=" width: 30%; height: 50px; text-align:right; border-right: 1px solid #CCCCCC">订单ID : &nbsp;</td>
                <td>&nbsp;{$list.id}</td>
            </tr>
            <tr>
                <td style=" width: 30%; height: 50px; text-align:right; border-right: 1px solid #CCCCCC">用户ID : &nbsp;</td>
                <td>&nbsp;{$list.user_id}</td>
            </tr>
            <tr>
                <td style=" width: 30%; height: 50px; text-align:right; border-right: 1px solid #CCCCCC">订单号 : &nbsp;</td>
                <td>&nbsp;{$list.orders_num}</td>
            </tr>
            <tr>
                <td style=" width: 30%; height: 50px; text-align:right; border-right: 1px solid #CCCCCC">下单时间 : &nbsp;</td>
                <td>&nbsp;{$list.create_time|date='Y-m-d H:i:s',###}</td>
            </tr>
            <tr>
                <td style=" width: 30%; height: 50px; text-align:right; border-right: 1px solid #CCCCCC;color:red;font-weight:bold">支付金额 : &nbsp;</td>
                <td style="color:red;font-weight:bold">&nbsp;{$list.price_sum} 元</td>
            </tr>
			<tr>
                <td style=" width: 30%; height: 50px; text-align:right; border-right: 1px solid #CCCCCC;color:red;font-weight:bold">积分抵扣金额 : &nbsp;</td>
                <td style="color:red;font-weight:bold">&nbsp;积分A账户：{$jfa|default=0} &nbsp;&nbsp;积分B账户：{$jfb|default=0}  </td>
            </tr>
            <tr>
                <td style=" width: 30%; height: 50px; text-align:right; border-right: 1px solid #CCCCCC">支付时间 : &nbsp;</td>
                <td>&nbsp;<if condition="$list.pay_time != ''">{$list.pay_time|date='Y-m-d H:i:s',###}</if></td>
            </tr>
            <tr>
                <td style=" width: 30%; height: 50px; text-align:right; border-right: 1px solid #CCCCCC">订单备注 : &nbsp;</td>
                <td>&nbsp;{$list.order_remarks}</td>
            </tr>
            <tr>
                <td style=" width: 30%; height: 50px;  text-align:right;border-right: 1px solid #CCCCCC">收货人信息 : &nbsp;</td>
                <td>&nbsp;收货人: {$list.realname} <br/> &nbsp;手机号: {$list.mobile} <br/> &nbsp;收货地址: {$list.user_address}</td>
            </tr>
            <tr>
                <td style=" width: 30%; height: 50px;  text-align:right;border-right: 1px solid #CCCCCC">快递信息 : &nbsp;</td>
                <td>&nbsp;快递公司: {$list.kuaidi_name} <br/> &nbsp;快递单号: {$list.kuaidi_num} <br/> &nbsp;发货时间: <if condition="$list.fahuo_time != ''">{$list.fahuo_time|date='Y-m-d H:i:s',###}</if></td>
            </tr>
            <tr>
                <td style=" width: 30%; height: 50px;  text-align:right;border-right: 1px solid #CCCCCC">退货申请</td>
                <td>
                <if condition="$list.tuohuo_time != ''">
                    用户申请退货
                </if>
                    <!-- <a href="{:U('Goods/tuohuo_ok')}" style="padding:10px 20px; border:1px solid #CCC;">同意退货</a> &nbsp; <a href="{:U('Goods/tuohuo_no')}" style="padding:10px 20px; border:1px solid #CCC;">取消退货申请</a> -->
                </td>
            </tr>
            <tr>
                <td style=" width: 30%; height: 50px;  text-align:right; border-right: 1px solid #CCCCCC;border-bottom: none">商品&旅游信息 : &nbsp;</td>
                <td style="border: none">

                    <foreach name="list.result" item="vo" >
                        <div style="overflow: hidden; zoom: 1" class="good_detail">
                            <p class="detail_img"><img src="__PUBLIC__/Uploads/goods/{$vo.pic_url}" style="width: 100px;
                            height: 100px;"/> </p>
                            <p style="text-align:justify; width: 30%;"><a href="{:U('Home/Index/goods_details',array('id'=>$vo['goods_id']))}" target='_blank' style="color:blue">{$vo.goods_title}</a><br/>
                            <if condition="$vo.taocan_name != ''">套餐：{$vo.taocan_name}</if><br/>返利：{$vo.fanli_jifen} 积分<br/>
                            <if condition="$vo.chufa_date != ''">出发日期:{$vo.chufa_date}</if>  <br/> 
                            <if condition="$vo.chufa_address != ''">出发城市:{$vo.chufa_address} </if>
                            </p>
                            <p style="text-align: center; width: 30%">{$vo.price_new}X{$vo.goods_num}</p>
                        </div>
                     </foreach>

                </td>
            </tr>
			<tr>
                <td style=" width: 30%; height: 50px;  text-align:right;border-right: 1px solid #CCCCCC">总返利积分 : &nbsp;</td>
                <td> &nbsp;&nbsp;&nbsp;{$list.fanli_jifen} 分</td>
			</tr>
			<tr>
                <td style=" width: 30%; height: 50px;  text-align:right;border-right: 1px solid #CCCCCC">返利触发说明 : &nbsp;</td>
                <td> &nbsp;&nbsp;&nbsp;{$list.fanli_action}</td>
			</tr>
        </table>
    </table>
</div>

<!-- 分页 -->
<div class="page">
    {$page}
</div>


</body>
</html>
